package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpWorkSafetySigener;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BpWorkSafetySigenerDao  extends JpaRepository<BpWorkSafetySigener, Long> {

    List<BpWorkSafetySigener> findByCertIdAndCategoryId(Long certId, Integer categoryId);

    List<BpWorkSafetySigener> findByCertId(Long certId);

    void deleteByCertId(Long id);

    void deleteByCertIdAndCategoryId(Long id, int i);
}
